# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=sxcs
pkgver=1.0.0
pkgrel=0
pkgdesc="Minimal X11 Color Picker and Magnifier"
url="https://codeberg.org/NRK/sxcs"
arch="all"
license="GPL-3.0-or-later"
options="!check" # no test suite
makedepends="libx11-dev libxcursor-dev"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/NRK/sxcs/archive/v$pkgver.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/sxcs"

build() {
	make -e sxcs LDLIBS="-lX11 -lXcursor"
}

package() {
	install -Dm755 -t "$pkgdir"/usr/bin sxcs
	install -Dm644 -t "$pkgdir"/usr/share/man/man1 sxcs.1
}

sha512sums="
dbcd20d894ac2d63f3c93dcee9881a068d40f33cbce5527de746dca2dc34fe264eb91d0849cff81a2730b78645ed421ccf763b544922fbd626361b8056f24d3a  sxcs-1.0.0.tar.gz
"
